package com.xmg.p2p.base.service;

import org.springframework.stereotype.Service;

/**
 * @BelongsProject: jinrong-website
 * @BelongsPackage: com.xmg.p2p.base.service
 * @author: Andy
 * @date: 2021.3.11 11:22
 * @Description: 生成验证码业务
 * @since JDK 1.8
 */
@Service
public interface IVerifyCodeService {
    /**
     * 像手机号发送验证码，并封装到 verifyCodeVO 中
     * @param phoneNumber
     */
    public void sendVerifyCode(String phoneNumber);

    /**
     * 验证验证法是否正确
     * @param phoneNumber
     * @param verifyCode
     * @return
     */
    public boolean verify(String phoneNumber,String verifyCode);
}
